package com.zn.cusumer;

import com.zn.user.UserInterface;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class Cusumer {
    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:spirng-cosumer-dubbo.xml");
        applicationContext.start();
        UserInterface bean = applicationContext.getBean(UserInterface.class);
        System.out.println(bean.hello("tlz"));
        System.in.read();
    }
}
